package designpattern.command;

public class Client {
    public static void main(String[] args) {
        ICommand command = new ConcreteCommandA();
        Invoker invoker = new Invoker(command);
        invoker.action();

        ICommand command1 = new ConcreteCommandB();
        Invoker invoker1 = new Invoker(command1);
        invoker1.action();
    }
}
